package model;

public enum Stats {
    STR,CON,DEX,INT,WIS,CHA;
    
    public static Stats getStat(int statInt) {
	Stats result = null;
	switch(statInt) {
		case 0: result = STR; break;
		case 1: result = CON; break;
		case 2: result = DEX; break;
		case 3: result = INT; break;
		case 4: result = WIS; break;
		case 5: result = CHA; break;
	}
	return result;
    }
    
    public static int getInt(Stats the_stat) {
	int result = -1;
	switch(the_stat) {
    	case STR: result = 0; break;
    	case CON: result = 1; break;
    	case DEX: result = 2; break;
    	case INT: result = 3; break;
    	case WIS: result = 4; break;
    	case CHA: result = 5; break;
	}
	return result;
    }
}
